package com.itljm.cxrMarket.mapper;

import com.itljm.cxrMarket.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 自定义查询
     */
    List<SysMenu> queryAll();

    List<SysMenu> selectMenusByIds(@Param("menuIds") List<Long> menuIds);

    @Select("SELECT * FROM menus WHERE parent_id IS NULL ORDER BY order ASC")
    List<SysMenu> selectTopLevelMenus();

}




